/*
 * Copyright 2016-2017 TVI Go Easy.
 * Created on 2017/4/19 11:21
 */
package org.mechanic;

import org.mechanic.fund.config.WcBaseInfoProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 启动嵌入式的Tomcat并初始化Spring环境.
 *
 * 无 applicationContext.xml 和 web.xml, 靠下述方式进行配置：
 *
 * 1. 扫描当前package下的class设置自动注入的Bean<br/>
 * 2. 也支持用@Bean标注的类配置Bean <br/>
 * 3. 根据classpath中的三方包Class及集中的application.properties条件配置三方包，如线程池 <br/>
 * 4. 也支持用@Configuration标注的类配置三方包.
 *
 * @author mechanic
 * @version 0.0.1
 */
@SpringBootApplication
@ServletComponentScan
@EnableConfigurationProperties({WcBaseInfoProperties.class})
public class FundApiApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(FundApiApplication.class, args);
    }
}